package com.lyl.syt.common.config;

import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Mr.Luo
 * @date 2022-04-15 10:35
 * @desc 跨域配置
 */
//@Configuration
public class CrossOriginConfig implements WebMvcConfigurer {

/*    @Override
    public void addCorsMappings(CorsRegistry registry) {

        registry.addMapping("/**")
                .allowedOriginPatterns("*")
                .allowedMethods("*")
                .allowedHeaders("*")
                .maxAge(3600)
                .allowCredentials(true);
    }*/
}
